Skip to content

Fix color issues for operation output and theme switching#4691

Merged
Gabriel Dufresne (GabrielDuf) merged 4 commits into
mainfrom
operationOutputTextContrast
May 5, 2026
Merged

Fix color issues for operation output and theme switching#4691
Gabriel Dufresne (GabrielDuf) merged 4 commits into
mainfrom
operationOutputTextContrast

Conversation

@GabrielDuf
Copy link
Copy Markdown
Contributor

@GabrielDuf Gabriel Dufresne (GabrielDuf) commented May 5, 2026

This pull request introduces several improvements to theming and dynamic resource usage for UI elements, with a focus on making colors and styles adapt automatically to the current theme. The changes primarily affect how foreground and background colors are applied to log output, icons, and info bars, increasing consistency and maintainability across light and dark themes.

Theming and dynamic resource improvements:

  • The OperationOutputViewModel now uses theme-aware brushes for log output lines, looking up resources like StatusErrorForeground and LogOutputVerboseForeground instead of hardcoded colors. This ensures log output colors adapt to the current theme. (issue [BUG] Avalonia Windows: Update operation popup has poor text contrast #4681)
  • The SvgIcon control has been updated to automatically select an appropriate foreground color based on the current theme unless explicitly set, and now listens for theme changes to update its appearance dynamically.
  • The main window now uses a dynamic resource for icon foregrounds (AppIconForeground) instead of a hardcoded color, improving theme consistency.

InfoBar styling simplification:

  • InfoBar background and border colors are now set using style classes and dynamic resources, rather than being updated manually in code. This makes theme changes seamless and reduces code complexity. [

Code cleanup:

  • Removes an unnecessary hardcoded foreground color in the OperationViewModel menu icon, allowing it to inherit the correct color from the theme.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit c358e41 into main May 5, 2026
1 check passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the operationOutputTextContrast branch May 5, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants